/**   
* @Title: OperateServiceImple.java 
* @Package com.nebula.upms.service.impl 
* @Description: TODO(用一句话描述该文件做什么) 
* @author zhanghui   
* @date 2016年2月3日 下午4:50:25 
* @version V1.0   
*/
package com.nebula.upms.service.biz.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.nebula.upms.service.biz.OperateService;
import com.nebula.upms.service.model.po.UpmsOperatePO;
import com.nebula.upms.service.model.po.UpmsOperatePOExample;
import com.nebula.upms.service.support.constant.UpmsLocalFinal;
import com.nebula.upms.service.support.datasource.UpmsDs;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nebula.common.framework.BaseService;

/** 
* @ClassName: OperateServiceImple 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author zhanghui
* @date 2016年2月3日 下午4:50:25 
*  
*/
@Service("operateService")
@Transactional
public class OperateServiceImple extends BaseService implements OperateService {

	/*
	 * <p>Title: getStandardUpmsOperatePOList</p>
	 * <p>Description: </p>
	 * @return
	 * @see com.nebula.upms.service.OperateService#getStandardUpmsOperatePOList()
	 */
	@Override
	public List<UpmsOperatePO> getStandardUpmsOperatePOList() {
		UpmsOperatePOExample example=new UpmsOperatePOExample();
		example.createCriteria().andTypeEqualTo(UpmsLocalFinal.OPERATE_TYPE_Y10);
		example.setOrderByClause(" type,create_time asc ");
		List<UpmsOperatePO> list= UpmsDs.instance().mybatis().ds().mapper().selectByExample(example);
		return list;
	}

	/*
	 * <p>Title: getPrivilegeUpmsOperatePOList</p>
	 * <p>Description: </p>
	 * @param privilegeId
	 * @return
	 * @see com.nebula.upms.service.OperateService#getPrivilegeUpmsOperatePOList(java.lang.String)
	 */
	@Override
	public List<UpmsOperatePO> getPrivilegeUpmsOperatePOList(String privilegeId) {
		Map<String,Object> params=new HashMap<>();
		params.put("privilegeId", privilegeId);
		List<UpmsOperatePO> list=UpmsDs.instance().mybatis().ds().mapper("PrivilegeMapper").selectList("selectPrivilegeOperatePOList", params);
		return list;
	}

}
